package info.jimao.newsdk.callbacks;

import com.zhy.http.okhttp.callback.Callback;

import info.jimao.newsdk.results.NoDataResult;
import okhttp3.Request;
import okhttp3.Response;

public abstract class NoDataCallback extends Callback<NoDataResult> {
    @Override
    public NoDataResult parseNetworkResponse(Response response) throws Exception {
        String responseString = response.body().string();
        return new NoDataResult(responseString);
    }

    @Override
    public void onResponse(NoDataResult response) {

    }

    @Override
    public void onBefore(Request request) {

    }
}
